//
//  STBaseViewController.m
//  赛拓
//
//  Created by 王磊 on 7/28/16.
//  Copyright © 2016 立金所. All rights reserved.
//

#import "STBaseViewController.h"

@interface STBaseViewController ()


@end

@implementation STBaseViewController

+ (instancetype)instance {
    return [self new];
}
- (AppDelegate *)mDelegate {
    if (!_mDelegate) {
        _mDelegate = (AppDelegate *)[UIApplication sharedApplication].delegate;
    }
    return _mDelegate;
}
- (UIImageView *)imageView {
    if (!_imageView) {
        
        _imageView = [[UIImageView alloc]init];
        
        [self.view addSubview:_imageView];
    }
    return _imageView;
}
- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    
    self.navigationController.navigationBar.translucent = false;
    
    self.tabBarController.tabBar.translucent = false;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self initSubviews];
    
    [self loadData];
    
}
- (void)initSubviews {
    
    self.view.backgroundColor = ST_BG_COLOR;
}
- (void)loadData {
    
    
    
}

@end
